<?php


use Illuminate\Support\Facades\Route;
use Plugin\PaypalSiteB\Controllers\PollingPaypalController;
use Plugin\PaypalSiteB\Controllers\ApiController;

Route::group(['prefix' => 'paypal_s'], function () {
    Route::post('/create', [
        PollingPaypalController::class,
        'create'
    ]);
    Route::post('/capture', [
        PollingPaypalController::class,
        'capture'
    ]);
});

Route::post('/callback/paypal_s/create_order', [
    ApiController::class,
    'create_order'
]);

Route::post('/callback/paypal_s/query_order', [
    ApiController::class,
    'query_order'
]);


Route::post('/callback/paypal_s/shipping', [
    ApiController::class,
    'shipping'
]);


Route::get('/paypal_s/pay_order/{order_no}', [
    ApiController::class,
    'showPayment'
])->name('paypal_s.pay_order');

